package com.dong.design.builder;

/**
 * 创建套餐
 *
 * @author jianyang206881
 * @date 2018/6/8
 */
public class MealBuilder {

    /**
     * 准备蔬菜套餐
     *
     * @return 蔬菜套餐
     */
    public Meal prepareVegMeal() {
        Meal meal = new Meal();
        meal.addItem(new VegBurger());
        meal.addItem(new Coke());
        return meal;
    }

    /**
     * 准备汉堡套餐
     *
     * @return 汉堡套餐
     */
    public Meal prepareChickenMeal() {
        Meal meal = new Meal();
        meal.addItem(new ChickenBurger());
        meal.addItem(new Pepsi());
        return meal;
    }
}
